package com.sky.utils;

import lombok.extern.slf4j.Slf4j;

import java.io.IOException;

@Slf4j
public class ChmodUtil {

    public static void chmodPath(String path) {
        try {
            String command = "chmod -R 755 "+path;
            Runtime.getRuntime().exec(command).waitFor();
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            log.error("授权目录失败");
        }
    }
}
